package com.lcicl.reggie.service;
/*
  Date: 2023/08/10
  Author: Luochao
  Description:
*/

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcicl.reggie.entity.Dish;
import com.lcicl.reggie.entity.dto.DishDto;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

@Transactional
public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    void updateWithFlavor(DishDto dishDto);

    void removeDish(ArrayList<Long> ids);
}
